import http from '@/utils/request.js'

export const getCategoryIndexShow = ()=>{
	return http.post('/web/pub/getCategoryIndexShow')
}
export const getBannerList = ()=>{
	return http.post('/web/pub/getBannerList')
}
export const getIndexGoodsList = (data)=>{
	return http.post('/web/pub/getIndexGoodsList',data)
}
// export const getGoodsList = (data)=>{
// 	return http.post('/web/pub/getGoodsList',data)
// }
//  获取所有分类
export const getCategory = (data)=>{
	return http.post('/web/pub/getCategory',data)
}
//  获取商品
export const getGoodsList = (data)=>{
	return http.post('/web/pub/getGoodsList',data)
}
//  获取商品详情
export const getGoodsInfo = (data)=>{
	return http.post('/web/pub/getGoodsInfo',data)
}
//  获取商品评价
export const getGoodsCommentList = (data)=>{
	return http.post('/web/pub/getGoodsCommentList',data)
}
//  收藏商品
export const collectGoods = (data)=>{
	return http.post('/web/kh/user/collectGoods',data)
}
//  加入购物车
export const addCart = (data)=>{
	return http.post('/web/kh/order/addCart',data)
}